package com.ruoyi.system.domain.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MtPatientProgressExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MtPatientProgressExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPatientGuidIsNull() {
            addCriterion("patient_guid is null");
            return (Criteria) this;
        }

        public Criteria andPatientGuidIsNotNull() {
            addCriterion("patient_guid is not null");
            return (Criteria) this;
        }

        public Criteria andPatientGuidEqualTo(String value) {
            addCriterion("patient_guid =", value, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andPatientGuidNotEqualTo(String value) {
            addCriterion("patient_guid <>", value, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andPatientGuidGreaterThan(String value) {
            addCriterion("patient_guid >", value, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andPatientGuidGreaterThanOrEqualTo(String value) {
            addCriterion("patient_guid >=", value, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andPatientGuidLessThan(String value) {
            addCriterion("patient_guid <", value, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andPatientGuidLessThanOrEqualTo(String value) {
            addCriterion("patient_guid <=", value, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andPatientGuidLike(String value) {
            addCriterion("patient_guid like", value, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andPatientGuidNotLike(String value) {
            addCriterion("patient_guid not like", value, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andPatientGuidIn(List<String> values) {
            addCriterion("patient_guid in", values, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andPatientGuidNotIn(List<String> values) {
            addCriterion("patient_guid not in", values, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andPatientGuidBetween(String value1, String value2) {
            addCriterion("patient_guid between", value1, value2, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andPatientGuidNotBetween(String value1, String value2) {
            addCriterion("patient_guid not between", value1, value2, "patientGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidIsNull() {
            addCriterion("progress_guid is null");
            return (Criteria) this;
        }

        public Criteria andProgressGuidIsNotNull() {
            addCriterion("progress_guid is not null");
            return (Criteria) this;
        }

        public Criteria andProgressGuidEqualTo(String value) {
            addCriterion("progress_guid =", value, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidNotEqualTo(String value) {
            addCriterion("progress_guid <>", value, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidGreaterThan(String value) {
            addCriterion("progress_guid >", value, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidGreaterThanOrEqualTo(String value) {
            addCriterion("progress_guid >=", value, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidLessThan(String value) {
            addCriterion("progress_guid <", value, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidLessThanOrEqualTo(String value) {
            addCriterion("progress_guid <=", value, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidLike(String value) {
            addCriterion("progress_guid like", value, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidNotLike(String value) {
            addCriterion("progress_guid not like", value, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidIn(List<String> values) {
            addCriterion("progress_guid in", values, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidNotIn(List<String> values) {
            addCriterion("progress_guid not in", values, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidBetween(String value1, String value2) {
            addCriterion("progress_guid between", value1, value2, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressGuidNotBetween(String value1, String value2) {
            addCriterion("progress_guid not between", value1, value2, "progressGuid");
            return (Criteria) this;
        }

        public Criteria andProgressTypeIsNull() {
            addCriterion("progress_type is null");
            return (Criteria) this;
        }

        public Criteria andProgressTypeIsNotNull() {
            addCriterion("progress_type is not null");
            return (Criteria) this;
        }

        public Criteria andProgressTypeEqualTo(String value) {
            addCriterion("progress_type =", value, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressTypeNotEqualTo(String value) {
            addCriterion("progress_type <>", value, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressTypeGreaterThan(String value) {
            addCriterion("progress_type >", value, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressTypeGreaterThanOrEqualTo(String value) {
            addCriterion("progress_type >=", value, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressTypeLessThan(String value) {
            addCriterion("progress_type <", value, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressTypeLessThanOrEqualTo(String value) {
            addCriterion("progress_type <=", value, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressTypeLike(String value) {
            addCriterion("progress_type like", value, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressTypeNotLike(String value) {
            addCriterion("progress_type not like", value, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressTypeIn(List<String> values) {
            addCriterion("progress_type in", values, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressTypeNotIn(List<String> values) {
            addCriterion("progress_type not in", values, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressTypeBetween(String value1, String value2) {
            addCriterion("progress_type between", value1, value2, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressTypeNotBetween(String value1, String value2) {
            addCriterion("progress_type not between", value1, value2, "progressType");
            return (Criteria) this;
        }

        public Criteria andProgressMessageIsNull() {
            addCriterion("progress_message is null");
            return (Criteria) this;
        }

        public Criteria andProgressMessageIsNotNull() {
            addCriterion("progress_message is not null");
            return (Criteria) this;
        }

        public Criteria andProgressMessageEqualTo(String value) {
            addCriterion("progress_message =", value, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andProgressMessageNotEqualTo(String value) {
            addCriterion("progress_message <>", value, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andProgressMessageGreaterThan(String value) {
            addCriterion("progress_message >", value, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andProgressMessageGreaterThanOrEqualTo(String value) {
            addCriterion("progress_message >=", value, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andProgressMessageLessThan(String value) {
            addCriterion("progress_message <", value, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andProgressMessageLessThanOrEqualTo(String value) {
            addCriterion("progress_message <=", value, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andProgressMessageLike(String value) {
            addCriterion("progress_message like", value, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andProgressMessageNotLike(String value) {
            addCriterion("progress_message not like", value, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andProgressMessageIn(List<String> values) {
            addCriterion("progress_message in", values, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andProgressMessageNotIn(List<String> values) {
            addCriterion("progress_message not in", values, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andProgressMessageBetween(String value1, String value2) {
            addCriterion("progress_message between", value1, value2, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andProgressMessageNotBetween(String value1, String value2) {
            addCriterion("progress_message not between", value1, value2, "progressMessage");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatIsNull() {
            addCriterion("record_time_format is null");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatIsNotNull() {
            addCriterion("record_time_format is not null");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatEqualTo(Date value) {
            addCriterion("record_time_format =", value, "recordTimeFormat");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatNotEqualTo(Date value) {
            addCriterion("record_time_format <>", value, "recordTimeFormat");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatGreaterThan(Date value) {
            addCriterion("record_time_format >", value, "recordTimeFormat");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatGreaterThanOrEqualTo(Date value) {
            addCriterion("record_time_format >=", value, "recordTimeFormat");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatLessThan(Date value) {
            addCriterion("record_time_format <", value, "recordTimeFormat");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatLessThanOrEqualTo(Date value) {
            addCriterion("record_time_format <=", value, "recordTimeFormat");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatIn(List<Date> values) {
            addCriterion("record_time_format in", values, "recordTimeFormat");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatNotIn(List<Date> values) {
            addCriterion("record_time_format not in", values, "recordTimeFormat");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatBetween(Date value1, Date value2) {
            addCriterion("record_time_format between", value1, value2, "recordTimeFormat");
            return (Criteria) this;
        }

        public Criteria andRecordTimeFormatNotBetween(Date value1, Date value2) {
            addCriterion("record_time_format not between", value1, value2, "recordTimeFormat");
            return (Criteria) this;
        }

        public Criteria andSerialNumberIsNull() {
            addCriterion("serial_number is null");
            return (Criteria) this;
        }

        public Criteria andSerialNumberIsNotNull() {
            addCriterion("serial_number is not null");
            return (Criteria) this;
        }

        public Criteria andSerialNumberEqualTo(String value) {
            addCriterion("serial_number =", value, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andSerialNumberNotEqualTo(String value) {
            addCriterion("serial_number <>", value, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andSerialNumberGreaterThan(String value) {
            addCriterion("serial_number >", value, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andSerialNumberGreaterThanOrEqualTo(String value) {
            addCriterion("serial_number >=", value, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andSerialNumberLessThan(String value) {
            addCriterion("serial_number <", value, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andSerialNumberLessThanOrEqualTo(String value) {
            addCriterion("serial_number <=", value, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andSerialNumberLike(String value) {
            addCriterion("serial_number like", value, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andSerialNumberNotLike(String value) {
            addCriterion("serial_number not like", value, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andSerialNumberIn(List<String> values) {
            addCriterion("serial_number in", values, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andSerialNumberNotIn(List<String> values) {
            addCriterion("serial_number not in", values, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andSerialNumberBetween(String value1, String value2) {
            addCriterion("serial_number between", value1, value2, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andSerialNumberNotBetween(String value1, String value2) {
            addCriterion("serial_number not between", value1, value2, "serialNumber");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameIsNull() {
            addCriterion("progress_template_name is null");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameIsNotNull() {
            addCriterion("progress_template_name is not null");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameEqualTo(String value) {
            addCriterion("progress_template_name =", value, "progressTemplateName");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameNotEqualTo(String value) {
            addCriterion("progress_template_name <>", value, "progressTemplateName");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameGreaterThan(String value) {
            addCriterion("progress_template_name >", value, "progressTemplateName");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameGreaterThanOrEqualTo(String value) {
            addCriterion("progress_template_name >=", value, "progressTemplateName");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameLessThan(String value) {
            addCriterion("progress_template_name <", value, "progressTemplateName");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameLessThanOrEqualTo(String value) {
            addCriterion("progress_template_name <=", value, "progressTemplateName");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameLike(String value) {
            addCriterion("progress_template_name like", value, "progressTemplateName");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameNotLike(String value) {
            addCriterion("progress_template_name not like", value, "progressTemplateName");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameIn(List<String> values) {
            addCriterion("progress_template_name in", values, "progressTemplateName");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameNotIn(List<String> values) {
            addCriterion("progress_template_name not in", values, "progressTemplateName");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameBetween(String value1, String value2) {
            addCriterion("progress_template_name between", value1, value2, "progressTemplateName");
            return (Criteria) this;
        }

        public Criteria andProgressTemplateNameNotBetween(String value1, String value2) {
            addCriterion("progress_template_name not between", value1, value2, "progressTemplateName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}